package com.qf.service.impl;

import com.qf.dao.SspDao;
import com.qf.pojo.Goods;
import com.qf.pojo.Ssp;
import com.qf.pojo.resp.BaseResult;
import com.qf.service.SspService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SspServiceImpl implements SspService {
    @Resource
    private SspDao sspDao;

    @Override
    public BaseResult findAll() {
        try {
            List<Ssp> sspList = sspDao.findAll();
            return new BaseResult(1, "查询成功!", sspList);
        } catch (Exception e) {
            e.printStackTrace();
            return new BaseResult(0, "查询失败!", null);
        }
    }
}
